package org.wyn.mongodb.bean;

import org.bson.types.ObjectId;
import org.wyn.common.Table;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;

/**
 * 表示用户两两间好友关系
 * @author hq01u8867
 *
 */
@Entity(value=Table.CollectionName.FRIENDRELATIONSHIP, noClassnameStored = true)
public class FriendRelationship {
	@Id
	private ObjectId id;
	@Indexed
	private String user1;
	@Indexed
	private String user2;
	private long createTime;
	public ObjectId getId() {
		return id;
	}
	public void setId(ObjectId id) {
		this.id = id;
	}
	public String getUser1() {
		return user1;
	}
	public void setUser1(String user1) {
		this.user1 = user1;
	}
	public String getUser2() {
		return user2;
	}
	public void setUser2(String user2) {
		this.user2 = user2;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
}
